<html>
<title>留言板</title>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<link rel="stylesheet" type="text/css" href="/Public/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="/Public/css/bootstrap-theme.min.css">
<script type="text/javascript" src="/Public/js/jquery.min.js"></script>
<script type="text/javascript" src="/Public/js/bootstrap.min.js"></script>
<script type="text/javascript">
	$(function(){
	});
	function previous(){
		var val = $("#pageIndex");
		if ($("#pageIndex").html() == 1) {
			return;
		};
		window.location.href="/index.php/home/message/index?pageIndex="+(val.html()-1);
	}
	function next(){
		var val = $("#pageIndex");
		if ($("#pageIndex").html() == {$count}) {
			return;
		};
		window.location.href="/index.php/home/message/index?pageIndex="+(val.html()-(-1));
	}
</script>
<body>
<nav class="navbar-inverse navbar-default">
  <div class="container-fluid">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="/index.php/Home/Message/index">留言板</a>
    </div>

    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li><a href="/index.php/Home/Message/index">首页</a></li>
      </ul>

      <ul class="nav navbar-nav navbar-right">
        <li><a href="/">登陆</a></li>
        <li><a href="/index.php/Home/User/register">注册</a></li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{$_SESSION['account']}<span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="/index.php/Home/User/logout">登出</a></li>
          </ul>
        </li>
      </ul>
    </div>
  </div>
</nav>
{__CONTENT__}
</body>
</html>
